/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-15 10:21:01
 */
export const tableOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 60,
    column: [
      {
        label: '宠物头像',
        prop: 'avatar',
        width: 80,
        span: 24,
        type: 'upload',
        imgFullscreen: true,
        listType: 'picture-img',
        fileType: 'img',
      },
      {
        label: '宠物ID',
        prop: 'id',
      },
      {
        label: '宠物编号',
        prop: 'code',
        search: true,
      },
      {
        label: '宠物昵称/曾用名',
        prop: 'nickName',
        search: true,
      },
      {
        label: '宠物品种',
        prop: 'petType',
        search: true,
        type: 'cascader',
        dicUrl: '/core/classify/tree',
      },
      {
        label: '性别',
        prop: 'gender',
        type: 'select',
        search: true,
        dicUrl: '/admin/dict/type/pet_sex',
      },
      {
        label: '用户编号',
        prop: 'adopterCode',
        search: true,
        width: 160,
        overHidden: true,
      },
      {
        label: '用户昵称',
        prop: 'adopterNickName',
        search: true,
      },
      {
        label: '手机号',
        prop: 'adopterPhone',
        search: true,
        width: 160,
      },
      {
        label: '住址',
        prop: 'adopterAddress',
        width: 160,
        overHidden: true,
      },
      {
        label: '出生日期',
        prop: 'birthDay',
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        width: 160,
        searchRange: true,
      },
      {
        label: '到家日期',
        prop: 'arrivalDate',
        type: 'datetime',
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        search: true,
        width: 160,
        searchRange: true,
      },
    ],
  };
};
